<%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%><%@ page import="java.net.URL"%><%@page import="java.io.*"%><%
    FileReader fr = null;
    FileWriter fw = null;
    InputStreamReader isr = null;
    char[] cs = new char[1024 * 8];
    int length = -1;
    StringBuilder sb1 = new StringBuilder();
    
    URL url = new URL("http://203.91.46.41:1800/tianqi.xml");
    
    try {
        System.out.println(url.toExternalForm());
        isr = new InputStreamReader(url.openStream());
        //fr = new FileReader(f);
        while (-1 != (length = isr.read(cs))) {
            sb1.append(cs, 0, length);
        }
        System.out.println(sb1.toString());
    } catch (Exception e) {
        e.printStackTrace();
    } finally {
        
    }
%>
